package com.example.testapp;

public class Var2 extends Functions {
	
	Var2(double _A)
	{
		this.A = _A;
		this.B = 0;
		this.C = 0;
		this.D = 0;
		
		this.Alpha = 1;
		this.Beta = -1;
		this.Delta = -1;
		this.Gamma = 1;
		
		this.L = Math.PI;
		this.x0 = 0;
		this.t0 = 0;
	}
	
	@Override
	public double phi_0(double t)
	{
		return 0;
	}
	
	@Override
	public double phi_l(double t)
	{
		return 0;
	}
	
	@Override
	public double psy_1(double x)
	{
		return Math.sin(x) + Math.cos(x);
	}
	
	@Override
	public double psy_2(double x)
	{
		return -A*(Math.sin(x) + Math.cos(x));
	}
	
	@Override
	public double f(double x, double t)
	{
		return 0;
	}
	
	@Override
	public double uReal(double x, double t)
	{
		return Math.sin(x - A*t) + Math.cos(x + A*t);
	}
	
	@Override
	public double diff1_psy_1(double x)
	{
		return Math.cos(x) - Math.sin(x);
	}
	
	@Override
	public double diff2_psy_1(double x)
	{
		return -Math.sin(x) - Math.cos(x);
	}
	
	@Override
	public double diff1_psy_2(double x)
	{
		return -A*(Math.cos(x) - Math.sin(x));
	}

}
